!pip install kaleido
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: kaleido in /home/x-dchawra/.local/lib/python3.8/site-packages (0.2.1)
import plotly.express as px
import pandas as pd
pqdata = pd.read_parquet('/anvil/projects/tdm/data/disney/total.parquet')
meta = pd.read_csv("/anvil/projects/tdm/data/disney/metadata.csv")
# print("pqdata desc--------------------------")
# print(pqdata.head(10))
# print("meta desc--------------------------")
# print(meta.head(1))
# pqdata['ride_name'].value_counts()
fig = px.bar(pqdata['ride_name'].value_counts(), title="Observations Per Ride: Question 1")
fig.update_xaxes(tickangle=30)
fig.show(renderer="jpg")
1: It is important to plot the variable of interest, rather than a supplementary variable, because it is the variable of interest that we are trying to analyze. If we plot a supplementary variable, we are not able to clearly see trends in the main variable.
2: It is important to order the variables in a plot in a way that makes sense to the reader, and allows for the reader to see visual trends in the data because it helps a lot with rough analysis of the data.
Markdown notes and sentences and analysis written here.
Markdown notes and sentences and analysis written here.
This is the average requests per second the server can respond to.
By submitting this work I hereby pledge that this is my own, personal work. I've acknowledged in the designated place at the top of this file all sources that I used to complete said work, including but not limited to: online resources, books, and electronic communications. I've noted all collaboration with fellow students and/or TA's. I did not copy or plagiarize another's work.
As a Boilermaker pursuing academic excellence, I pledge to be honest and true in all that I do. Accountable together – We are Purdue.